package com.rf.richfitwheel.outbill.service;

import com.rf.richfitwheel.admin.sys.vo.UserVO;
import com.rf.richfitwheel.outbill.model.OutBillInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rf.richfitwheel.utils.PageJson;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author admin
 * @since 2024-06-11
 */
public interface OutBillInfoService extends IService<OutBillInfo> {
    PageJson pageJson(OutBillInfo outBillInfo);

    /**
     * 出票登记提交
     * */
    Boolean addFlow(Map<String, Object> params);

    /**
     * 出票登记更新，审批人使用
     * */
    Boolean modifyFlow(Map<String, Object> params, UserVO user);

    void updateOutBill(String id, String status, String processInstanceId,Map<String, Object> variables);

    boolean backFlow(Map<String, Object> params);

    //撤销出票登记更新走流程
    boolean backModifyFlow(Map<String, Object> params, UserVO user);

    void backAcceptBill(String id, String status, String processInstanceId);

}
